package com.zhiyou100.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou100.dao.UserDao;
import com.zhiyou100.model.User;
@Service
public class UserServiceImpl implements UserService {
     
	@Autowired
	private UserDao userDao;
	
	
	@Override
	public boolean getCode(String phone) {
		
		return false;
	}

	@Override
	public User register(String phone, Integer code) {
	
		return null;
	}

	@Override
	public User login(String phone, String password) {
		// TODO Auto-generated method stub
		return null;
	}

	

	@Override
	public void update(User user) {
		
		userDao.update(user);
		
	}

	@Override
	public void save(User user) {
		
		userDao.save(user);
		
	}

	@Override
	public User findByPhone(String Phone) {
		
		return userDao.findByPhone(Phone);
	}
	
	

}
